Skip to content

perf: enable gzip.#2414

Merged
liqiang-fit2cloud merged 1 commit intomainfrom
pr@main@enable_gzip
Feb 26, 2025
Merged

perf: enable gzip.#2414
liqiang-fit2cloud merged 1 commit intomainfrom
pr@main@enable_gzip

Conversation

@shaohuzhang1
Copy link
Copy Markdown
Contributor

perf: enable gzip.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Feb 26, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Feb 26, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

'django.middleware.gzip.GZipMiddleware',
'common.middleware.static_headers_middleware.StaticHeadersMiddleware',
'common.middleware.cross_domain_middleware.CrossDomainMiddleware'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no issue with the provided code snippet. The addition of django.middleware.gzip.GZipMiddleware to the middleware list ensures that gzip compression can be applied across all responses returned by Django, which could improve performance for users downloading content over HTTP/1 instead of HTTP/2 on some browsers or devices. No additional improvements are necessary as this change does not introduce any bugs or inconsistencies in the middleware stack.

@liqiang-fit2cloud
Copy link
Copy Markdown
Member

Try to fix #2410

@liqiang-fit2cloud liqiang-fit2cloud merged commit 68b9225 into main Feb 26, 2025
4 checks passed
@liqiang-fit2cloud liqiang-fit2cloud deleted the pr@main@enable_gzip branch February 26, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants